<script setup>
import userSum from "@/pinia/sum"
import {storeToRefs} from "pinia";
const sumStore=userSum()
let {sum,maxSum,minSum,showMessage,findById}=storeToRefs(sumStore)
</script>

<template>
<h1>sum的值:{{sum}}</h1>
  <h1>放大100倍后sum的值:{{maxSum}}</h1>
  <h1>减小10后sum的值:{{minSum}}</h1>
  <h1>{{showMessage}}</h1>
  <h1>{{findById(1)}}</h1>

</template>

<style scoped lang="less">

</style>
